From a42befd9b422fe6f16c76b67e07988b36a2ff7c7 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 8 Oct 2023 16:17:26 +0100 Subject: Add tags when generating Patio code for structs --- ...lang.compiler.testing.snapshots.Snapshotter)].expected | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index c7b77936..a840e5a7 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineStructTests]/[method:canGenerateCodeForDefineStruct(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -7,19 +7,26 @@ Compilation unit elements: locals=((param "closurePointer__0" data-ptr) (param "local__isActive" int) (param "local__name" int) (val "structValuePointer__0" data-ptr) (val "structValue__0" int)) return-type=int body=( - (alloc-heap (local "structValuePointer__0") (struct (int int))) + (alloc-heap (local "structValuePointer__0") (struct (int (struct (int int))))) ( memory-store pointer=(local "structValuePointer__0") - layout=(struct (int int)) + layout=(struct (int (struct (int int)))) offset=(0) + value=(int 0) + ) + ( + memory-store + pointer=(local "structValuePointer__0") + layout=(struct (int (struct (int int)))) + offset=(1 0) value=(local "local__name") ) ( memory-store pointer=(local "structValuePointer__0") - layout=(struct (int int)) - offset=(1) + layout=(struct (int (struct (int int)))) + offset=(1 1) value=(local "local__isActive") ) (data-ptr-to-int (local "structValue__0") (local "structValuePointer__0")) -- cgit v1.2.3